#pragma config(Hubs,  S1, HTMotor,  HTMotor,  HTServo,  HTMotor)
#pragma config(Sensor, S1,     ,               sensorI2CMuxController)
#pragma config(Sensor, S2,     IR1,            sensorI2CCustomFastSkipStates)
#pragma config(Sensor, S3,     IR2,            sensorI2CCustomFastSkipStates)
#pragma config(Motor,  mtr_S1_C1_1,     L,             tmotorNormal, openLoop, reversed)
#pragma config(Motor,  mtr_S1_C1_2,     R,             tmotorNormal, openLoop)
#pragma config(Motor,  mtr_S1_C2_1,     motorCL,       tmotorNormal, openLoop)
#pragma config(Motor,  mtr_S1_C2_2,     motorCR,       tmotorNormal, openLoop)
#pragma config(Motor,  mtr_S1_C4_1,     motorBall,     tmotorNormal, openLoop, reversed)
#pragma config(Motor,  mtr_S1_C4_2,     motorI,        tmotorNone, openLoop)
#pragma config(Servo,  srvo_S1_C3_1,    servo1,               tServoStandard)
#pragma config(Servo,  srvo_S1_C3_2,    servo2,               tServoNone)
#pragma config(Servo,  srvo_S1_C3_3,    Bridge,               tServoStandard)
#pragma config(Servo,  srvo_S1_C3_4,    servo4,               tServoNone)
#pragma config(Servo,  srvo_S1_C3_5,    Lift,                 tServoStandard)
#pragma config(Servo,  srvo_S1_C3_6,    Lift2,                tServoStandard)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

task main()
{
  while(1==1)
  {if(nNxtButtonPressed==kRightButton)
    {
      motor[motorCR]=10;
    }
    else
    {
      motor[motorCR]=0;
    }
    if(nNxtButtonPressed==kLeftButton)
    {
      motor[motorCL]=-10;
    }
    else
    {
      motor[motorCL]=0;
    }
  }
}
